Skip to content

add a vtgate check that verifies there are no positional arguments#3572

Closed
demmer wants to merge 1 commit intovitessio:masterfrom
tinyspeck:vtgate-ignore-positional-arguments
Closed

add a vtgate check that verifies there are no positional arguments#3572
demmer wants to merge 1 commit intovitessio:masterfrom
tinyspeck:vtgate-ignore-positional-arguments

Conversation

@demmer
Copy link
Copy Markdown
Member

@demmer demmer commented Jan 22, 2018

Ignore all positional arguments in the vtgate command binary rather than silently ignoring them.

@sougou
Copy link
Copy Markdown
Contributor

sougou commented Jan 23, 2018

Could you add this check to vttablet also?

@acharis
Copy link
Copy Markdown
Contributor

acharis commented Jan 23, 2018

👍
it's already in vttablet and vtcombo
maybe we want it in vtctld and friends?

@acharis
Copy link
Copy Markdown
Contributor

acharis commented Jan 23, 2018

and as long as we're handling this class of error, maybe instead of flag.Usage() which puts a bunch of stuff in logs and can easily be obtained by a person, is there an easy way to print out what the flags library thinks the positional args are?

@demmer
Copy link
Copy Markdown
Member Author

demmer commented Jan 23, 2018

@sougou @acharis thanks for the feedback -- I'm going to close this in favor of the more thorough #3573

@demmer demmer closed this Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants